/**
 * Created by linc on 2017/5/22.
 */
var express = require('express');

var sub = express.Router();

var docs = [
  {
    id: '1',
    docId: 'docId1',
    cpdf: 1,
    name: 'cpdf1-drm0-version0-link1.pdf',
    owner: 'test@fp.com',
    drm: 0,
    versionId: '',
    rootVersionId: '',
    parentVersionId: '',
    fileLink: 'https://www.baidu.com'
    //versions: [],
  },
  {
    id: '2',
    docId: 'docId2',
    cpdf: 1,
    name: 'cpdf1-drm1-version0-link0.pdf',
    owner: 'test@fp.com',
    drm: 1,
    versionId: '',
    rootVersionId: '',
    parentVersionId: '',
    fileLink: ''
    //versions: [],
  },
  {
    id: '3',
    docId: 'docId3',
    cpdf: 0,
    name: 'cpdf0-drm0-version0-link0.pdf',
    owner: 'test@fp.com',
    drm: 0,
    versionId: '',
    rootVersionId: '',
    parentVersionId: '',
    fileLink: ''
    //versions: [],
  },
];

sub.get('/recently', function (req, res) {
  res.json({
    code: 200,
    data: docs
  })
});

module.exports = sub;
